<% var pageLevelJS = { %>
<link rel="stylesheet" href="${plugin}/tool/zTree/css/zTreeStyle/zTreeStyle.css" type="text/css">
<script  type="text/javascript" src="${plugin}/tool/zTree/js/jquery.ztree.core.min.js"></script>
<script  type="text/javascript" src="${plugin}/tool/zTree/js/jquery.ztree.excheck.min.js"></script>
<script type="text/javascript">
var settings = {
		 modelDomainFlag:"auth"
		,modelName:"用户组"
		,modelFlag:"usergroup"
		 ,key:"${sessionId}" 
		 ,addUrl:window.global.ctx+"/auth/usergroup/newtree"
		 ,updateUrl:window.global.ctx+"/auth/usergroup/newtree"
		}
</script> 
<script type="text/javascript" src="${ctx}/static/fw/js/fw-inputTree.js"></script>
<script type="text/javascript" src="${ctx}/static/js/auth/usergroup/edit.js"></script>
<%};%> 
<% var layoutParas =
{"title":"","add":isEmpty(data.id),"formId":"applyeditForm","pageLevelJS":pageLevelJS};
layout("/WEB-INF/views/btl/template/backBasicEditFormTemplate.html", layoutParas){ %>
			<input type="hidden" name="instanceId" value="${data.instanceId}">
			<input type="hidden" name="id"  value="${data.userId}">
		    <input type="hidden" name="ids" value="">
		   <div class="widget-box">
				<div class="widget-header">
					<h4 class="smaller">
						用户组列表
						<small>选中即为拥有该用户组权限</small>
					</h4>
				</div>
				<div class="widget-body">
					<div class="widget-main">
					    <div class="zTreeDemoBackground left">
							<ul class="ztree" style="overflow:auto"></ul>
						</div>
					</div>
				</div>
			</div>
<%} %>
